﻿using System;
using System.Collections.Generic;
using Core.Entities;

namespace Core.Dtos
{

	public static class DtoExtensionMethods
	{
        public static Item ToEntity(this ItemDto dto)
		{
			return AutoMapper.Mapper.Map<ItemDto, Item>(dto);            
		}

        public static Article ToEntity(this ArticleDto dto)
		{
			return AutoMapper.Mapper.Map<ArticleDto, Article>(dto);            
		}        		
	}
}

